added Feb 2001 SDK
[windows-sources.git] / shared source / sscli20 / jscript / engine / lenientobjectprototype.cs
blob43e41409741640d3b3d26ec7e5a7f0776ae291fa
1 // ==++==
2 //
3 //
4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
5 //
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
10 //
11 // You must not remove this notice, or any other, from this software.
12 //
13 //
14 // ==--==
16 namespace Microsoft.JScript {
18 using Microsoft.JScript.Vsa;
19 using System;
21 public class LenientObjectPrototype : ObjectPrototype{
22 public new Object constructor;
23 public new Object hasOwnProperty;
24 public new Object isPrototypeOf;
25 public new Object propertyIsEnumerable;
26 public new Object toLocaleString;
27 public new Object toString;
28 public new Object valueOf;
30 internal LenientObjectPrototype(VsaEngine engine)
31 : base() {
32 this.engine = engine;
33 this.noExpando = false;
34 //this.constructor is given a value by the proper constructor class
37 internal void Initialize(LenientFunctionPrototype funcprot){
38 Type super = typeof(ObjectPrototype);
39 this.hasOwnProperty = new BuiltinFunction("hasOwnProperty", this, super.GetMethod("hasOwnProperty"), funcprot);
40 this.isPrototypeOf = new BuiltinFunction("isPrototypeOf", this, super.GetMethod("isPrototypeOf"), funcprot);
41 this.propertyIsEnumerable = new BuiltinFunction("propertyIsEnumerable", this, super.GetMethod("propertyIsEnumerable"), funcprot);
42 this.toLocaleString = new BuiltinFunction("toLocaleString", this, super.GetMethod("toLocaleString"), funcprot);
43 this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
44 this.valueOf = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);